Benjamin Otte [Tue, 28 Sep 2010 16:24:55 +0000 (18:24 +0200)]
offscreenwindow: Fix includes
Benjamin Otte [Tue, 28 Sep 2010 16:24:34 +0000 (18:24 +0200)]
notebook: Fix compilation warnings - missing cast
Benjamin Otte [Tue, 28 Sep 2010 16:24:14 +0000 (18:24 +0200)]
combobox: Fix compilation warnings - missing cast
Michael Natterer [Tue, 28 Sep 2010 14:03:59 +0000 (16:03 +0200)]
gdk: remove "screen" member from GdkOffscreenWindow, it has become obsolete
Also remove screen parameter from _gdk_offscreen_window_new() and get
rid of a bunch on includes in gdkoffscreenwindow.c
Tor Lillqvist [Tue, 28 Sep 2010 13:22:44 +0000 (16:22 +0300)]
Create directory before installing files there
Claudio Saavedra [Mon, 27 Sep 2010 09:22:03 +0000 (12:22 +0300)]
Fix maintainer-clean
gtkimcontextsimpleseqs.h is not really autogenerated but shipped
https://bugzilla.gnome.org/show_bug.cgi?id=630708
Matthias Clasen [Tue, 28 Sep 2010 00:59:08 +0000 (20:59 -0400)]
Improve some docs
Sílvia Miranda [Mon, 27 Sep 2010 22:04:12 +0000 (00:04 +0200)]
Updated Catalan translation
Gil Forcada [Mon, 27 Sep 2010 22:03:28 +0000 (00:03 +0200)]
Removed invalid entry
Benjamin Otte [Mon, 27 Sep 2010 18:49:39 +0000 (20:49 +0200)]
label: Fix rendering of rotated labels
gtk_paint_layout is utterly broken. Someone needs to fix it so we use
the cairo_t's matrix and don't juggle with both Pango and cairo matrices
everywhere.
Benjamin Otte [Mon, 27 Sep 2010 18:49:06 +0000 (20:49 +0200)]
gtk-demo: Clean up toolpalette drawing code
Fix compile warning and use cairo_paint() instead of querying the widget
size and cairo_fill()ing it.
Benjamin Otte [Mon, 27 Sep 2010 18:48:43 +0000 (20:48 +0200)]
cups: Fix compile warnings with --enable-debug
Benjamin Otte [Mon, 27 Sep 2010 15:33:39 +0000 (17:33 +0200)]
x11: Fix debug code
With recent changes, nobody compiled with debug enabled. Fix that.
Tristan Van Berkom [Mon, 27 Sep 2010 12:15:16 +0000 (21:15 +0900)]
Fix erroneous usage of height-for-width apis in gtk_widget_real_adjust_size_allocation().
When fitting a widget into its allocation, the second dimension
is always dependent on the first, so gtk_widget_get_preferred_size()
cannot be used directly (because we want the natural height for
the allocated width, not the natural height for the natural width,
which is generally a smaller height than the height-for-minimum-width
or height-for-allocated-width).
Added test to testadjustsize to ensure proper behaviour.
Tristan Van Berkom [Mon, 27 Sep 2010 06:11:27 +0000 (15:11 +0900)]
Fixing documentation of gtk_widget_get_request_mode()
Tristan Van Berkom [Mon, 27 Sep 2010 06:10:50 +0000 (15:10 +0900)]
Fixing demos/ directory to build for removal of GtkObject type.
Tristan Van Berkom [Mon, 27 Sep 2010 06:10:23 +0000 (15:10 +0900)]
Fixing tests/ build for removal of GtkObject type.
Tristan Van Berkom [Mon, 27 Sep 2010 06:09:51 +0000 (15:09 +0900)]
Fixing gail build for removal of GtkObject type.
Matthias Clasen [Mon, 27 Sep 2010 02:29:33 +0000 (22:29 -0400)]
Add a migration guide section on GtkObject
Matthias Clasen [Mon, 27 Sep 2010 02:11:13 +0000 (22:11 -0400)]
Remove GtkObject from the docs
Matthias Clasen [Sat, 18 Sep 2010 23:58:14 +0000 (19:58 -0400)]
Remove GtkWidgetFlags
Matthias Clasen [Sat, 18 Sep 2010 23:57:32 +0000 (19:57 -0400)]
Remove GtkObject completely
Javier Jardón [Sat, 18 Sep 2010 23:55:42 +0000 (19:55 -0400)]
Move destroy signal to GtkWidget
Also make GtkWidget derive from GInitiallyUnowned
Javier Jardón [Sat, 18 Sep 2010 23:54:31 +0000 (19:54 -0400)]
Move classes that currently derive from GtkObject to GInitiallyUnowned
Javier Jardón [Mon, 27 Sep 2010 01:49:49 +0000 (03:49 +0200)]
Move documentation to inline comments: GtkPaperSize
Tadej Borovšak [Mon, 27 Sep 2010 01:03:09 +0000 (03:03 +0200)]
Update and expand GtkAccelMap API docs
Javier Jardón [Mon, 27 Sep 2010 00:55:31 +0000 (02:55 +0200)]
Move documentation to inline comments: GtkAccelMap
Matthias Clasen [Mon, 27 Sep 2010 00:42:07 +0000 (20:42 -0400)]
Add a missing end tag
Benjamin Otte [Sun, 26 Sep 2010 22:45:52 +0000 (00:45 +0200)]
tests: Port testadjustsize to draw vfunc
Javier Jardón [Sun, 26 Sep 2010 22:06:00 +0000 (00:06 +0200)]
gtk-demo: Use draw signal in toolpalette demo
Damyan Ivanov [Sun, 26 Sep 2010 19:34:23 +0000 (22:34 +0300)]
Updated Bulgarian translation
Benjamin Otte [Sun, 26 Sep 2010 15:50:03 +0000 (17:50 +0200)]
image: Fix up draw function
The previous port to the draw function was a tiny bit incomplete. This
patch should fix the remaining issues and remove unused variables.
Matthias Clasen [Sat, 25 Sep 2010 00:02:01 +0000 (20:02 -0400)]
Migration guide: Add an example for colormap -> visual
Matthias Clasen [Fri, 24 Sep 2010 22:59:24 +0000 (18:59 -0400)]
Expand the migration guide
This commit add some text about mult-window ::draw implementations,
pointing out the gtk_cairo_should_draw_window() and
gtk_cairo_transform_to_window() convenience functions.
Benjamin Otte [Sat, 25 Sep 2010 22:55:48 +0000 (00:55 +0200)]
accellabel: Remove gtk_widget_is_drawable() check from draw vfunc
Benjamin Otte [Thu, 23 Sep 2010 09:54:54 +0000 (11:54 +0200)]
treeview: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:54:44 +0000 (11:54 +0200)]
spinbutton: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:54:34 +0000 (11:54 +0200)]
notebook: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:54:27 +0000 (11:54 +0200)]
menu: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:54:16 +0000 (11:54 +0200)]
iconview: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:54:06 +0000 (11:54 +0200)]
entry: Use gtk_cairo_transform_to_window()
Benjamin Otte [Thu, 23 Sep 2010 09:53:54 +0000 (11:53 +0200)]
calendar: Use gtk_cairo_transform_to_window()
Benjamin Otte [Wed, 22 Sep 2010 14:11:58 +0000 (16:11 +0200)]
textview: Use gtk_cairo_transform_to_window()
Benjamin Otte [Wed, 22 Sep 2010 14:10:45 +0000 (16:10 +0200)]
API: Add gtk_cairo_transform_to_window()
The function reverses the transform that GTK does before emitting a draw
event. So we can use it in "old" widgets to revert the coordinate system
properly.
Benjamin Otte [Tue, 21 Sep 2010 14:52:59 +0000 (16:52 +0200)]
cellrenderer: Merge GtkCellSizeRequest into GtkCellRenderer
This mostly goes to keep consistency with the changes to GtkSizeRequest
in the last patch, as GtkCellSizeRequest requires GtkCellRenderer and
GtkCellRenderer implements GtkCellSizeRequest there's no use in keeping
them separate.
This patch renames the functions:
gtk_cell_size_request_get_request_mode()
=> gtk_cell_renderer_get_request_mode()
gtk_cell_size_request_get_width()
=> gtk_cell_renderer_get_preferred_width()
gtk_cell_size_request_get_height()
=> gtk_cell_renderer_get_preferred_height()
gtk_cell_size_request_get_size()
=> gtk_cell_renderer_get_preferred_size()
gtk_cell_size_request_get_width_for_height()
=> gtk_cell_renderer_get_preferred_width_for_height()
gtk_cell_size_request_get_height_for_width()
=> gtk_cell_renderer_get_preferred_height_for_width()
... and moves the corresponding vfuncs to GtkCellRenderer.
The patch also renames the implementations of these functions in cell
renderers to include the word "preferrred".
Benjamin Otte [Tue, 21 Sep 2010 14:35:17 +0000 (16:35 +0200)]
Move GtkSizeRequest into GtkWidget
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
Benjamin Otte [Mon, 20 Sep 2010 15:30:54 +0000 (17:30 +0200)]
API: remove gdk_drawable_get_size()
Benjamin Otte [Mon, 20 Sep 2010 15:16:13 +0000 (17:16 +0200)]
gdk: Remove default implementations for get_*_region
This should only be used on windows anyway and GdkWindow has an
implementation for both functions.
Benjamin Otte [Mon, 20 Sep 2010 14:55:33 +0000 (16:55 +0200)]
docs: Get rid of gdk_drawable_get_size() usage in shooter example
Benjamin Otte [Mon, 20 Sep 2010 14:49:27 +0000 (16:49 +0200)]
tests: Get rid of gdk_drawable_get_size() usage in testwindows
Benjamin Otte [Mon, 20 Sep 2010 14:49:11 +0000 (16:49 +0200)]
tests: Get rid of gdk_drawable_get_size() usage in offscreenbox
Benjamin Otte [Mon, 20 Sep 2010 14:47:06 +0000 (16:47 +0200)]
testgtk: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:46:48 +0000 (16:46 +0200)]
dnd-quartz: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:57 +0000 (16:44 +0200)]
window: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:47 +0000 (16:44 +0200)]
widget: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:38 +0000 (16:44 +0200)]
viewport: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:30 +0000 (16:44 +0200)]
treeview: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:19 +0000 (16:44 +0200)]
textview: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:44:06 +0000 (16:44 +0200)]
testutils: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:40:04 +0000 (16:40 +0200)]
spinbutton: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:54 +0000 (16:39 +0200)]
plug: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:41 +0000 (16:39 +0200)]
offscreenwindow: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:32 +0000 (16:39 +0200)]
notebook: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:25 +0000 (16:39 +0200)]
menu: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:14 +0000 (16:39 +0200)]
iconview: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:39:05 +0000 (16:39 +0200)]
handlebox: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:38:53 +0000 (16:38 +0200)]
entry: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:38:38 +0000 (16:38 +0200)]
calendar: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 14:36:25 +0000 (16:36 +0200)]
msw-engine: Remove sanitize_size code
It's not needed with the new APIs
Benjamin Otte [Mon, 20 Sep 2010 10:54:07 +0000 (12:54 +0200)]
gtk-demo: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 10:53:46 +0000 (12:53 +0200)]
gdk: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 10:53:32 +0000 (12:53 +0200)]
win32: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 10:53:06 +0000 (12:53 +0200)]
quartz: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 10:52:26 +0000 (12:52 +0200)]
x11: Get rid of gdk_drawable_get_size() usage
Benjamin Otte [Mon, 20 Sep 2010 10:14:25 +0000 (12:14 +0200)]
API: Remove window clear APIs
The feature can and should be implemented manually using
gdk_window_get_background() and Cairo drawing. A non-cairo drawing API
does not make sense in GDK anymore.
Benjamin Otte [Mon, 20 Sep 2010 10:11:24 +0000 (12:11 +0200)]
gdk: No need to clear offscreen window when showing
I don't think it's necessary to clear the backing surface when showing
the window, as we're going to repaint it anyway. If it's needed, we can
implement it again using internal APIs, as the public window_clear()
APIs are going away.
Benjamin Otte [Mon, 20 Sep 2010 09:10:37 +0000 (11:10 +0200)]
API: Add size getters for GdkWindow
gdk_window_get_width() and gdk_window_get_height() will replace
gdk_drawable_get_size().
Matthias Clasen [Fri, 17 Sep 2010 02:41:33 +0000 (22:41 -0400)]
Add gtk_cairo_should_draw_window to the docs
Matthias Clasen [Thu, 16 Sep 2010 14:49:56 +0000 (10:49 -0400)]
Docs: start migration guide additions
Benjamin Otte [Wed, 15 Sep 2010 01:20:59 +0000 (03:20 +0200)]
widget: Check the widget has an allocation in gtk_widget_draw()
Following the mailing list discussion, require that the widget does not
have a pending size_allocate when calling the draw function.
http://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00214.html
and the associated thread explain this in more detail.
Benjamin Otte [Sat, 11 Sep 2010 03:19:28 +0000 (05:19 +0200)]
API: Add gtk_widget_draw()
And here's the final patch that all the previous patches were about.
Benjamin Otte [Sat, 11 Sep 2010 01:50:47 +0000 (03:50 +0200)]
API: gtk_cell_renderer_render_cairo() => gtk_cell_renderer_render()
Benjamin Otte [Sat, 11 Sep 2010 01:31:04 +0000 (03:31 +0200)]
API: Remove gtk_cell_renderer_render()
The next commit will rename gtk_cell_renderer_render_cairo() to
gtk_cell_renderer_render() again
Benjamin Otte [Fri, 10 Sep 2010 23:54:48 +0000 (01:54 +0200)]
API: Get rid of gtk_draw_insertion_cursor()
and rename gtk_cairo_draw_insertion_cursor() to
gtk_draw_insertion_cursor().
Benjamin Otte [Fri, 10 Sep 2010 23:30:27 +0000 (01:30 +0200)]
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
Benjamin Otte [Fri, 10 Sep 2010 23:10:43 +0000 (01:10 +0200)]
API: style: Remove old drawing functions
Benjamin Otte [Fri, 10 Sep 2010 22:42:51 +0000 (00:42 +0200)]
API: widget: Remove the expose event
gtk_widget_send_expose() now calls the draw function.
Benjamin Otte [Fri, 10 Sep 2010 19:12:55 +0000 (21:12 +0200)]
API: Remove gtk_container_propagate_expose()
Also, move the documentation to its replacement
gtk_widget_propagate_draw().
Benjamin Otte [Fri, 10 Sep 2010 19:03:58 +0000 (21:03 +0200)]
container: Implement gtk_container_propagate_draw() without fallbacks
No more fallbacks to gtk_container_propagate_expose().
Benjamin Otte [Tue, 14 Sep 2010 14:42:16 +0000 (16:42 +0200)]
Change semantics of the draw signal
Previously, we tried to move the context's origin to the widget's top
left location, no matter what window the paint was happening on. Now we
only do that for child windows of the widget's window and leave the
context untouched for windows that the widget has created outside its
own hierarchy. In those casses, we also don't clip the context to
the widget's allocation.
Includes fixes to GtkHandlebox for this effect and fixes all known
issues with it.
These semantics assume that gtk_widget_draw() should only draw the parts
of a widget that are inside child windows and not draw stuff that is
located in completely different GdkWindows. In the handlebox case, it
means that it should only draw the handle when it is attached, but not
when it isn't. We'll likely need a special draw function for the
detached handlebox if we want to draw it.
Benjamin Otte [Tue, 14 Sep 2010 14:35:12 +0000 (16:35 +0200)]
widget: Clip drawing to the widget's allocation.
I've seen (and written) quite some widgets (and theme engines) that use
cairo_paint() to draw the background. So avoiding overdraw makes sense.
Also move all that setup into a _gtk_widget_draw_internal() function
that will be used by all functions that can be used by other functions
that draw widgets.
Benjamin Otte [Thu, 9 Sep 2010 21:09:07 +0000 (23:09 +0200)]
iconfactory: Initialize varibale to NULL in failure path
Otherwise we use random memory and that is not good.
Benjamin Otte [Thu, 9 Sep 2010 21:08:46 +0000 (23:08 +0200)]
image: Add a default case to switch statement to avoid gcc warnings
Benjamin Otte [Fri, 10 Sep 2010 22:08:54 +0000 (00:08 +0200)]
test: Port offscreen test to draw vfunc
Benjamin Otte [Fri, 10 Sep 2010 21:41:13 +0000 (23:41 +0200)]
gtk-demo: Port offscreen example to draw vfunc
Benjamin Otte [Fri, 10 Sep 2010 21:40:58 +0000 (23:40 +0200)]
gtk-demo: Port offscreen example to draw vfunc
Benjamin Otte [Thu, 9 Sep 2010 01:39:43 +0000 (03:39 +0200)]
testgtk: Use draw signal in layout test
Benjamin Otte [Thu, 9 Sep 2010 01:33:02 +0000 (03:33 +0200)]
testgtk: Use draw signal in scrolling test
Benjamin Otte [Thu, 9 Sep 2010 01:12:51 +0000 (03:12 +0200)]
testgtk: Use draw signal in cursors example
Benjamin Otte [Thu, 9 Sep 2010 01:09:12 +0000 (03:09 +0200)]
testgtk: Remove non-existing property from frame constructor